// import Vue from 'vue';
// import App from './App';
// import $ from 'jquery';
import './index.css';
import './style.css';
import logo from './assets/logo.png';
import bigBg from './assets/big.jpg';

// console.log('sf',$) //有值

let image = new Image();
image.src = logo;
document.body.appendChild(image);

let image2 = new Image();
image2.src = bigBg;
document.body.appendChild(image2);

const person = { name: 'lucas', age: 11 };
// let p = Promise.resolve(5);
// p.then(res=>{
//   console.log('res',res);
// })
// // console.log('打印出来');

function component() {
  const { name } = person;
  var element = document.createElement('div');
  element.innerHTML = '<div class="box"><span>你好，' + name + '</span></div>';
  element.classList.add('hello');

  return element;
}

document.body.appendChild(component());


// new Vue({
//   el: '#app',
//   render: h => h(App)
// })